package app.qrcode.browser.hearttoheart.activities

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import app.qrcode.browser.hearttoheart.databinding.ActivityLoginChoiceBinding

class LoginChoiceActivity : AppCompatActivity() {

    private lateinit var binding: ActivityLoginChoiceBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityLoginChoiceBinding.inflate(layoutInflater)
        setContentView(binding.root)
    }

    override fun onResume() {
        super.onResume()
        binding.buttonTeacher.isSelected = false

        binding.buttonTeacher.setOnClickListener {
            it.isSelected = !it.isSelected
            val intent = Intent(this, LoginActivity::class.java)
            startActivity(intent)
        }
    }
}
